package com.igeekhome.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.igeekhome.pojo.CustomerInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 客户信息 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-03-16
 */
public interface CustomerInfoMapper extends BaseMapper<CustomerInfo> {

    @Select("select count(*) from customer_info ${ew.customSqlSegment}")
    int myCount(@Param(Constants.WRAPPER) Wrapper wrapper);

//    @Select("select work_order.*,customer_info.realName,customer from wor ${ew.customSqlSegment}")
//    List<CustomerInfo> getAll(@Param(Constants.WRAPPER) Wrapper wrapper);

}
